<?php

/**
 * Created by PhpStorm.
 * User: koastal
 * Date: 2016/5/15
 * Time: 10:55
 */
require_once __DIR__."/mySmarty.php";
class Controller extends mySmarty
{

    function index()
    {
        return "Controller";
    }

    function __call($name, $arguments)
    {
        exit("function " . $name . " doesn't exist.");
    }

    function redis()
    {
        return redis('redisCacher');
    }

    function memcache()
    {
        return redis('memcacheCacher');
    }

    function fileCach()
    {
        return redis('fileCacher');
    }
}